﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="JianFengJianJiUserControl.ascx.cs" Inherits="JM.JCY.SharePointComponent.IncorruptArchives.JianFengJianJi.JianFengJianJiUserControl" %>
<%@ Register Src="../IncorruptLeftMenu/IncorruptLeftMenuUserControl.ascx" TagName="IncorruptLeftMenuUserControl"
    TagPrefix="uc1" %>
<script type="text/javascript">

    $(document).ready(function () {


    });

    function RedirectToViewJianFengJianJi(sender, CaseId) {
        sender.href = "JianFengJianJiDetails.aspx?CaseId=" + CaseId;
        return false;
    }

    function RedirectToCreateJianFengJianJi(sender) {
        sender.href = "CreateJianFengJianJi.aspx";
        return false;
    }

   
</script>
<style type="text/css">
    .ms-input /* Set textbox's width of dtEffDateFrom and dtEffDateTo */
    {
        width: 75px;
    }
    
    table.form td.nopaddingleft
    {
        padding-left: 0px;
        padding-top: 0px;
        vertical-align: top;
        font-family: Calibri;
        font-size: 12px;
    }
</style>
<div>
    <table class="main">
        <tr>
            <td valign="top" width="25%" runat="server" id="tdLeftMenu">
                <uc1:incorruptleftmenuusercontrol ID="IncorruptLeftMenuUserControl" 
                    runat="server" />
            </td>
            <td valign="top" width="75%" runat="server" id="tdContent">
                <table class="content" width="98%">
                    <tr>
                        <td style="padding: 5px;">
                            <table width="100%" class="title">
                                <tr>
                                    <td width="60%">
                                        <h2 class="title">
                                            <asp:Label ID="lblTitle" runat="server" Text="检风检纪记录情况"></asp:Label>
                                        </h2>
                                    </td>
                                    <td align="right" width="40%">
                                    </td>
                                </tr>
                                <tr>
                                    <td width="60%">
                                    </td>
                                    <td align="right" width="40%">
                                        <img src="/_layouts/JM.JCY.Resource/images/plus.png" width="12" />
                                        <asp:LinkButton ID="lkbCreateJianFengJianJi" runat="server" Text="创建新纪录" OnClientClick="RedirectToCreateJianFengJianJi(this)">
                                        </asp:LinkButton>
                                    </td>
                                </tr>
                            </table>
                             <br />
                            <hr id="hr1" />
                               <table width="100%" class="form" id="tbSearch" runat="server">
                                <tr>
                                    <td>
                                        序号
                                    </td>
                                    <td>
                                        :
                                    </td>
                                    <td>
                                        <asp:textbox id="txtNumber" runat="server">
                                        </asp:textbox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        时间
                                    </td>
                                    <td>
                                        :
                                    </td>
                                    <td class="nopaddingleft">
                                        <table cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td align="left" valign="top" class="nopaddingleft">
                                                    <SharePoint:DateTimeControl ID="dtDateFrom" CalendarImageUrl="/_layouts/JM.JCY.Resource/images/calendar.jpg"
                                                        DatePickerFrameUrl="/_layouts/iframe.aspx" DateOnly="true" Calendar="Gregorian"
                                                        LocaleId="2052" runat="server"></SharePoint:DateTimeControl>
                                                </td>
                                                <td>
                                                    -
                                                </td>
                                                <td align="left" valign="top" class="nopaddingleft">
                                                    <SharePoint:DateTimeControl ID="dtDateTo" CalendarImageUrl="/_layouts/JM.JCY.Resource/images/calendar.jpg"
                                                        DatePickerFrameUrl="/_layouts/iframe.aspx" DateOnly="true" Calendar="Gregorian"
                                                        LocaleId="2052" runat="server"></SharePoint:DateTimeControl>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        姓名
                                    </td>
                                    <td>
                                        :
                                    </td>
                                    <td>
                                        <asp:textbox id="txtName" runat="server">
                                        </asp:textbox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3" class="button">
                                        <asp:imagebutton id="imgSubmit" runat="server" 
                                            imageurl="~/_layouts/JM.JCY.Resource/images/search.png" 
                                            onclick="imgSubmit_Click" />
                                        <asp:imagebutton id="imgCancel" runat="server" 
                                            imageurl="~/_layouts/JM.JCY.Resource/images/cancel.png" 
                                            onclick="imgCancel_Click" />
                                    </td>
                                </tr>
                            </table>

                            <table width="100%">
                                <tr>
                                    <td width="100%">
                                        <div id="content">
                                            <asp:GridView ID="gvBC" runat="server" AutoGenerateColumns="False" BorderWidth="0px"
                                                GridLines="Horizontal" CssClass="altrowstablebc" OnRowDataBound="gvBC_DataBound"
                                                Width="100%" EnableModelValidation="True">
                                                <columns>
                                                    <asp:TemplateField HeaderText="序号">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lbNumber" runat="server" Text='<%#Eval("Number")%>' OnClientClick='<%# String.Format("RedirectToViewJianFengJianJi({0},{1})","this",Eval("ID")) %>'></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle Width="25%" />
                                                        <ItemStyle Width="25%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="时间">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblDate" runat="server" Text='<%# Eval("Date") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle Width="15%" />
                                                        <ItemStyle Width="15%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="姓名">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblName" runat="server" Text='<%#Eval("Name")%>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="部门">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblDept" runat="server" Text='<%#Eval("Dept")%>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="事件">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblEvent" runat="server" Text='<%#Eval("Event")%>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="违规类型">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblType" runat="server" Text='<%#Eval("Type")%>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </columns>
                                            </asp:GridView>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</div>
